export default class LockException {
    _msg = "";
    _code = 0;

    static make(zkResponseEnum) {
        return new LockException(zkResponseEnum.code, zkResponseEnum.msg);
    }

    constructor(code, msg) {
        this._msg = msg;
        this._code = code;
    }

    get msg() {
        return this._msg;
    }

    set msg(value) {
        this._msg = value;
    }

    get code() {
        return this._code;
    }

    set code(value) {
        this._code = value;
    }
}
